.class Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;
.super Landroid/widget/BaseAdapter;
.source "CommunityAppRankingFragment.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/brixd/niceapp/community/CommunityAppRankingFragment;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "AppRankingAdapter"
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$ViewHolder;
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    .prologue
    .line 242
    iput-object p1, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 297
    return-void
.end method


# virtual methods
.method public getCount()I
    .registers 2

    .prologue
    .line 246
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mRankingAppModels:Ljava/util/List;
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->access$400(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .registers 3
    .param p1, "position"    # I

    .prologue
    .line 251
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mRankingAppModels:Ljava/util/List;
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->access$400(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .registers 4
    .param p1, "position"    # I

    .prologue
    .line 256
    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .registers 10
    .param p1, "position"    # I
    .param p2, "convertView"    # Landroid/view/View;
    .param p3, "parent"    # Landroid/view/ViewGroup;

    .prologue
    .line 261
    iget-object v2, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mRankingAppModels:Ljava/util/List;
    invoke-static {v2}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->access$400(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/brixd/niceapp/community/model/RankingAppModel;

    .line 264
    .local v1, "rankingAppModel":Lcom/brixd/niceapp/community/model/RankingAppModel;
    if-nez p2, :cond_94

    .line 265
    new-instance v0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$ViewHolder;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$ViewHolder;-><init>(Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;)V

    .line 266
    .local v0, "holder":Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$ViewHolder;
    iget-object v2, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    invoke-virtual {v2}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v2

    const v3, 0x7f030050

    const/4 v4, 0x0

    invoke-static {v2, v3, v4}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 267
    const v2, 0x7f0a0039

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    iput-object v2, v0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$ViewHolder;->appIconImage:Landroid/widget/ImageView;

    .line 268
    const v2, 0x7f0a003a

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$ViewHolder;->appNameText:Landroid/widget/TextView;

    .line 269
    const v2, 0x7f0a0119

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$ViewHolder;->appSubtitleText:Landroid/widget/TextView;

    .line 270
    const v2, 0x7f0a00c6

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$ViewHolder;->rankPosText:Landroid/widget/TextView;

    .line 272
    invoke-virtual {p2, v0}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 277
    :goto_50
    iget-object v2, v0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$ViewHolder;->rankPosText:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    add-int/lit8 v4, p1, 0x1

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 278
    iget-object v2, v0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$ViewHolder;->appNameText:Landroid/widget/TextView;

    iget-object v3, v1, Lcom/brixd/niceapp/community/model/RankingAppModel;->title:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 279
    iget-object v2, v0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$ViewHolder;->appSubtitleText:Landroid/widget/TextView;

    iget-object v3, v1, Lcom/brixd/niceapp/community/model/RankingAppModel;->subTitle:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 280
    iget-object v2, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;
    invoke-static {v2}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->access$900(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v2

    iget-object v3, v1, Lcom/brixd/niceapp/community/model/RankingAppModel;->iconUrl:Ljava/lang/String;

    iget-object v4, v0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$ViewHolder;->appIconImage:Landroid/widget/ImageView;

    iget-object v5, p0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;->this$0:Lcom/brixd/niceapp/community/CommunityAppRankingFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;
    invoke-static {v5}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment;->access$800(Lcom/brixd/niceapp/community/CommunityAppRankingFragment;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v5

    invoke-virtual {v2, v3, v4, v5}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    .line 282
    new-instance v2, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$1;

    invoke-direct {v2, p0, v1}, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$1;-><init>(Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter;Lcom/brixd/niceapp/community/model/RankingAppModel;)V

    invoke-virtual {p2, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 294
    return-object p2

    .line 274
    .end local v0    # "holder":Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$ViewHolder;
    :cond_94
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$ViewHolder;

    .restart local v0    # "holder":Lcom/brixd/niceapp/community/CommunityAppRankingFragment$AppRankingAdapter$ViewHolder;
    goto :goto_50
.end method
